package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.util.List;

@Data
public class RelationPoet extends Model<RelationPoet> {
    @TableId(type= IdType.AUTO)
    private Integer id;

    private Integer poetId1;
    private Integer poetId2;

    private Integer relationTypeId;

    @TableField(exist = false)
    private Poet poet1;
    @TableField(exist = false)
    private Poet poet2;
    @TableField(exist = false)
    private RelationType relationType;
}
